package com.yincheng.oes.business.base.entity;

import java.util.Date;

/**
 *
 * @author yangsy
 * @version 1.0.0
 * @since
 * 创建时间：2018年7月13日
 * 功能描述：大纲（知识点）实体类
 * 邮箱地址：446948434@qq.com
 */
public class KnowledgeOutline {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 大纲编号
     */
    private String outlineCode;

    /**
     * 大纲内容
     */
    private String content;

    /**
     * 大纲类型，1：考研西医，2：执业医师
     */
    private String outlineType;

    /**
     * 父级大纲id
     */
    private Integer parentId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     * 是否激活，0：否，1：是
     */
    private String valid;

    /**
     * 父级大纲code
     */
    private String parentOutlineCode;

    /**
     * 判断是否是父节点
     */
    private Boolean isParent;

    /**
     * 大纲树的内容拼接
     */
    private String contents;

    /**
     * @return the parentOutlineCode
     */
    public String getParentOutlineCode() {
        return parentOutlineCode;
    }

    /**
     * @param parentOutlineCode the parentOutlineCode to set
     */
    public void setParentOutlineCode(String parentOutlineCode) {
        this.parentOutlineCode = parentOutlineCode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOutlineCode() {
        return outlineCode;
    }

    public void setOutlineCode(String outlineCode) {
        this.outlineCode = outlineCode == null ? null : outlineCode.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getOutlineType() {
        return outlineType;
    }

    public void setOutlineType(String outlineType) {
        this.outlineType = outlineType == null ? null : outlineType.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getValid() {
        return valid;
    }

    public void setValid(String valid) {
        this.valid = valid == null ? null : valid.trim();
    }

    /**
     * @return the isParent
     */
    public Boolean getIsParent() {
        return isParent;
    }

    /**
     * @param isParent the isParent to set
     */
    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    /**
     * @return the contents
     */
    public String getContents() {
        return contents;
    }

    /**
     * @param contents the contents to set
     */
    public void setContents(String contents) {
        this.contents = contents;
    }

    @Override
    public String toString() {
        return "KnowledgeOutline [id=" + id + ", outlineCode=" + outlineCode + ", content=" + content + ", outlineType="
                + outlineType + ", parentId=" + parentId + ", createTime=" + createTime + ", modifyTime=" + modifyTime
                + ", valid=" + valid + ", parentOutlineCode=" + parentOutlineCode + ", isParent=" + isParent
                + ", contents=" + contents + "]";
    }
}
